package com.lovo.pis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.pis.dto.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SellGoodsMapper extends BaseMapper<SellGoodsBean> {

    void insertSellGoods(@Param("sellCarGoodsList") List<SellCarGoodsBean> sellCarGoodsList, @Param("orderId") int orderId);

    List<CountBean> selectGoodsTypeCount(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<CountBean> selectGoodsNameCount(@Param("startDate") String startDate, @Param("endDate") String endDate);

    List<CountBean> selectMonthSellCount(@Param("year") String year,@Param("month") String month);

}
